package netty.rpc.client;

/**
 * rpc服务接口的配置类
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2022/5/11 7:41
 */
public class InterfaceConfig {

    /**
     * 服务名称
     */
    private String serviceName;

    /**
     * 接口Class
     */
    private Class<?> interfaceClass;

    /**
     * 超时时间
     */
    private Long timeOut;

    /**
     * 服务host
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;

    public Class<?> getInterfaceClass() {
        return interfaceClass;
    }

    public void setInterfaceClass(Class<?> interfaceClass) {
        this.interfaceClass = interfaceClass;
    }


    public Long getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(Long timeOut) {
        this.timeOut = timeOut;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "InterfaceConfig{" +
                "serviceName='" + serviceName + '\'' +
                ", interfaceClass=" + interfaceClass +
                ", timeOut=" + timeOut +
                ", host='" + host + '\'' +
                ", port=" + port +
                '}';
    }
}
